<link rel="stylesheet" href="__STATIC__/admin/css/welcome.css?v={$version}" media="all">
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-row layui-col-space15">
            <!-- 左侧部分 -->
            <div class="layui-col-md8">
                <div class="layui-row layui-col-space15">
                    <!-- 数据统计 -->
                    <div class="layui-col-md6">
                        <div class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-warning icon"></i>数据统计</div>
                            <div class="layui-card-body">
                                <div class="welcome-module">
                                    <div class="layui-row layui-col-space10">
                                        <div class="layui-col-xs6">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <span class="label pull-right layui-bg-blue">实时</span>
                                                        <h5>用户统计</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins">{$users}</h1>
                                                        <small>当前用户数</small>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <span class="label pull-right layui-bg-cyan">实时</span>
                                                        <h5>模块统计</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins">{$module}</h1>
                                                        <small>总记录数</small>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <span class="label pull-right layui-bg-orange">实时</span>
                                                        <h5>菜单统计</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins">{$menus}</h1>
                                                        <small>总记录数</small>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <span class="label pull-right layui-bg-green">实时</span>
                                                        <h5>异常统计</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins">{$error_log}</h1>
                                                        <small>总记录数</small>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- 快捷入口 -->
                    <div class="layui-col-md6">
                        <div class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-credit-card icon icon-blue"></i>快捷入口</div>
                            <div class="layui-card-body">
                                <div class="welcome-module">
                                    <div class="layui-row layui-col-space10 layuimini-qiuck">
                                        {foreach $quicks as $vo}
                                        <div class="layui-col-xs3 layuimini-qiuck-module">
                                            <a layuimini-content-href="{:url($vo['href'])}" data-title="{$vo['title']}">
                                                <i class="{$vo['icon']|raw}"></i>
                                                <cite>{$vo['title']}</cite>
                                            </a>
                                        </div>
                                        {/foreach}
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- 报表统计 -->
                    <div class="layui-col-md12">
                        <div class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-line-chart icon"></i>报表统计</div>
                            <div class="layui-card-body">
                                <div id="echarts-records" style="width: 100%;min-height:500px"></div>
                            </div>
                        </div>
                    </div>
                    <!-- 访问信息 -->
                    <div class="layui-col-md12">
                        <div class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-user icon icon-blue"></i>访问信息</div>
                            <div class="layui-card-body overflow-auto">
                                <table class="layui-table">
                                    <tbody>
                                    <tr>
                                        <td class="bold">用户系统</td>
                                        <td>{$systemInfo.user_os}</td>
                                        <td class="bold">用户IP</td>
                                        <td>{$systemInfo.user_ip}</td>
                                    </tr>
                                    <tr>
                                        <td class="bold">浏览器</td>
                                        <td>{$systemInfo.user_browser}</td>
                                        <td class="bold">所在城市</td>
                                        <td>{$systemInfo.user_ip_address}</td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    {if $isSuperAdmin}
                    <!-- 系统信息 -->
                    <div class="layui-col-md12">
                        <div class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-windows icon icon-cray"></i>系统信息</div>
                            <div class="layui-card-body overflow-auto">
                                <table class="layui-table">
                                    <tbody>
                                    <tr>
                                        <td class="bold">ThinkPHP版本</td>
                                        <td>{$systemInfo.think_version}</td>
                                        <td class="bold" id="admin_version" style="cursor: pointer;">后台系统版本</td>
                                        <td>{$systemInfo.admin_version}</td>
                                    </tr>
                                    <tr>
                                        <td class="bold">服务器系统</td>
                                        <td>{$systemInfo.server_os}</td>
                                        <td class="bold">服务器IP</td>
                                        <td>{$systemInfo.server_ip}</td>
                                    </tr>
                                    <tr>
                                        <td class="bold">服务器软件</td>
                                        <td>{$systemInfo.server_software}</td>
                                        <td class="bold">服务器软件端口</td>
                                        <td>{$systemInfo.server_port}</td>
                                    </tr>
                                    <tr>
                                        <td class="bold">PHP版本</td>
                                        <td>{$systemInfo.php_version}</td>
                                        <td class="bold">MySQL版本</td>
                                        <td>{$systemInfo.db_version}</td>
                                    </tr>
                                    <tr>
                                        <td class="bold">最大文件上传限制</td>
                                        <td>{$systemInfo.upload_max_filesize}</td>
                                        <td class="bold">单次上传数量限制</td>
                                        <td>{$systemInfo.max_file_uploads}</td>
                                    </tr>
                                    <tr>
                                        <td class="bold">最大POST限制</td>
                                        <td>{$systemInfo.post_max_size}</td>
                                        <td class="bold">项目磁盘剩余容量</td>
                                        <td>{$systemInfo.disk_free}</td>
                                    </tr>
                                    <tr>
                                        <td class="bold">运行内存限制</td>
                                        <td>{$systemInfo.memory_limit}</td>
                                        <td class="bold">PHP当前运行模式</td>
                                        <td>{$systemInfo.php_sapi_name}</td>
                                    </tr>
                                    <tr>
                                        <td class="bold">PHP当前时区</td>
                                        <td>{$systemInfo.timezone}</td>
                                        <td class="bold">PHP当前时间</td>
                                        <td>{$systemInfo.date_time}</td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <!-- 系统依赖 -->
                    <div class="layui-hide" id="dependencies">
                        <table class="layui-table">
                            <tbody>
                            {foreach name='systemInfo.require_list' id='item'}
                            <tr>
                                <td class="bold">{$key}</td>
                                <td>{$item}</td>
                            </tr>
                            {/foreach}
                            {foreach name='systemInfo.require_dev_list' id='item'}
                            <tr>
                                <td class="bold">{$key}</td>
                                <td>{$item}</td>
                            </tr>
                            {/foreach}
                            </tbody>
                        </table>
                    </div>
                    {/if}
                </div>
            </div>
            <!-- 右侧部分 -->
            <div class="layui-col-md4">
                <!-- 系统公告 -->
                <div class="layui-card">
                    <div class="layui-card-header"><i class="fa fa-bullhorn icon icon-tip"></i>系统公告</div>
                    <div class="layui-card-body layui-text">
                        {foreach $notices as $vo}
                        <div class="layuimini-notice">
                            <div class="layuimini-notice-id" style="display: none">{$vo['id']}</div>
                            <div class="layuimini-notice-title" style="width: calc(100% - 150px);white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">{$vo['title']}</div>
                            <div class="layuimini-notice-extra">{$vo['create_time']}</div>
                            <div class="layuimini-notice-content layui-hide">
                                {$vo['content']|raw}
                            </div>
                        </div>
                        {/foreach}
                    </div>
                </div>
                <!-- 时钟 -->
                <div class="layui-card">
                    <div class="layui-card-header"><i class="fa fa-clock-o icon"></i>本地时间</div>
                    <div class="layui-card-body">
                        <div id="echarts-clock" style="width: 100%;min-height:400px;"></div>
                    </div>
                </div>
                <!-- 版本信息 -->
                <div class="layui-card">
                    <div class="layui-card-header"><i class="fa fa-fire icon"></i>版本信息</div>
                    <div class="layui-card-body layui-text">
                        <table class="layui-table">
                            <tbody>
                            <tr>
                                <td>框架名称</td>
                                <td>
                                    EasyAdmin
                                </td>
                            </tr>
                            <tr>
                                <td>当前版本</td>
                                <td>v{:sysconfig('site', 'site_version')}</td>
                            </tr>
                            <tr>
                                <td>主要特色</td>
                                <td>零门槛 / 响应式 / 清爽 / 极简</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <!-- 作者心语 -->
                <div class="layui-card">
                    <div class="layui-card-header"><i class="fa fa-paper-plane-o icon"></i>作者心语</div>
                    <div class="layui-card-body">
                        <p>layui已经升级到layui2.9.11。<a class="layui-btn layui-btn-xs layui-btn-danger" target="_blank" href="https://layui.dev">layui文档</a></p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>